/**
 * @tag models, home
 * Wraps backend report_descriptor services.  Enables 
 * [ReportDescriptor.static.findAll retrieving],
 * [ReportDescriptor.static.update updating],
 * [ReportDescriptor.static.destroy destroying], and
 * [ReportDescriptor.static.create creating] report_descriptors.
 */
$.Model.extend('Bugstat.Models.ReportDescriptor',
/* @Static */
{
    /**
     * Retrieves report_descriptors data from your backend services.
     * @param {Object} params params that might refine your results.
     * @param {Function} success a callback function that returns wrapped report_descriptor objects.
     * @param {Function} error a callback function for an error in the ajax request.
     */
    findAll : function(params, success, error){
        $.ajax({
            url: 'reports/report_descriptor.get',
            type: 'get',
            dataType: 'json',
            data: params,
            success: this.callback(['wrapMany',success]),
			error: error
        })
    }
},
/* @Prototype */
{
	normalizedName: function ()
	{
		return _normalize( this.name );
	}
	
})